package com.myapp.web.struts2.components;

import java.io.Writer;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Select;
import com.opensymphony.xwork2.util.ValueStack;

public class StaticSelect extends Select{

	public StaticSelect(ValueStack stack, HttpServletRequest request,
			HttpServletResponse response) {		
		super(stack, request, response);
	}

	private void initalContext(){		
		ValueStack vs = this.getStack();
		Map<String,Object> map = vs.getContext();
		String key = (String)list;
		//map.put(key, CacheManager.getInstance().getItem(key));
	}
	
	@Override
	public boolean start(Writer writer) {
		initalContext();
		return super.start(writer);
	}		
}
